// import qs from 'qs'
import request from '@/utils/open/request'

export const appApi = {
  /**
   * 获取部门详情
   * @param {any} params
   */
  getDetail (data, params) {
    const url = 'api/department/get'
    return request.postForm(url, data, params)
  },

  /**
   * 获取子部门的数据
   * @param {*} data
   * @param {*} params
   * @returns
   */
  getChildrenList(data, params) {
    const url = 'api/department/children/list'
    return request.postForm(url, data, params)
  }
}
